package com.lst.model;

import java.math.BigDecimal;
import java.util.Date;

import com.google.gson.annotations.Expose;

public class ProjectInfo {
	
	@Expose
    private Integer id;

	@Expose
    private String title;

	@Expose
    private Integer protype;

	@Expose
    private String probill;

	@Expose
    private BigDecimal profee;

	@Expose
    private String unit;
	
	@Expose
	private String lightspot;

	@Expose
	private String warning;

	@Expose
    private String procontact;

	@Expose
    private String prophoneno;

	@Expose
    private Integer province;

	@Expose
    private Integer city;

	@Expose
    private Integer area;

	@Expose
    private String address;

	@Expose
    private Date startdate;

	@Expose
    private Date enddate;
	
	@Expose
	private String perdate;
	
	@Expose
	private String longgitude;

	@Expose
	private String latitude;

    @Expose
    private Boolean istop;//是否置顶
    
    @Expose
    private Integer praisenum = 0;

    @Expose
    private Integer browsenum = 0;

    @Expose
    private Integer favoritenum = 0;

    @Expose
    private Integer sharenum = 0;

    @Expose
    private Boolean enabled;

    @Expose
    private Boolean isdeleted;

    @Expose
    private Integer reserved1;//限制人数

    private Integer reserved2;

    private BigDecimal reserved3;

    private BigDecimal reserved4;

    private Date reserved5;

    private Date reserved6;

    @Expose
    private Boolean reserved7;//是否独家

    @Expose
    private Boolean reserved8;//是否推荐

    private String reserved9;

    private String reserved10;

    @Expose
    private String reserved11;

    @Expose
    private String reserved12;//活动压缩图

    @Expose
    private String remark;//活动简讯

    @Expose
    private Date createdate;

    @Expose
    private Integer createuser;

    @Expose
    private Date updatedate;

    private Integer updateuser;
    
    @Expose 
    private Boolean isFavorite = false;//收藏标志
    
    @Expose
    private String starttime;//开始时间，格式：2016.12.12
    
    @Expose
    private String endtime;//结束时间
    
    /*
     ***********附加属性***********
     */
    @Expose
    private String protypename;//活动类型
    
    @Expose
    private Integer countdown = 0;//倒计天数
    
    @Expose
    private Integer leavenum = 0;//剩余报名人数
   
	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getProtype() {
        return protype;
    }

    public void setProtype(Integer protype) {
        this.protype = protype;
    }

    public String getProbill() {
        return probill;
    }

    public void setProbill(String probill) {
        this.probill = probill == null ? null : probill.trim();
    }

    public BigDecimal getProfee() {
    	
    	if(profee != null){
    		//return new BigDecimal(String.format("%.1f", profee.doubleValue()));
    		//return profee.setScale(5,BigDecimal.ROUND_FLOOR);
    		return profee;
    	} else{
    		return new BigDecimal(0.00);
    	}
    }

    public void setProfee(BigDecimal profee) {
    	if(profee != null){
    		this.profee = profee.setScale(0,BigDecimal.ROUND_FLOOR);
    	}else{
    		 this.profee = profee;
    	}
       
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

	public String getLightspot() {
		return lightspot;
	}

	public void setLightspot(String lightspot) {
		this.lightspot = lightspot;
	}

	public String getWarning() {
		return warning;
	}

	public void setWarning(String warning) {
		this.warning = warning;
	}
      
    public String getProcontact() {
        return procontact;
    }

    public void setProcontact(String procontact) {
        this.procontact = procontact == null ? null : procontact.trim();
    }

    public String getProphoneno() {
        return prophoneno;
    }

    public void setProphoneno(String prophoneno) {
        this.prophoneno = prophoneno == null ? null : prophoneno.trim();
    }

    public Integer getProvince() {
        return province;
    }

    public void setProvince(Integer province) {
        this.province = province;
    }

    public Integer getCity() {
        return city;
    }

    public void setCity(Integer city) {
        this.city = city;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

	public String getPerdate() {
		return perdate;
	}

	public void setPerdate(String perdate) {
		this.perdate = perdate;
	}

	public String getLonggitude() {
		return longgitude;
	}

	public void setLonggitude(String longgitude) {
		this.longgitude = longgitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public Boolean getIstop() {
        return istop;
    }

    public void setIstop(Boolean istop) {
        this.istop = istop;
    }

    public Integer getPraisenum() {
        return praisenum;
    }

    public void setPraisenum(Integer praisenum) {
        this.praisenum = praisenum;
    }

    public Integer getBrowsenum() {
        return browsenum;
    }

    public void setBrowsenum(Integer browsenum) {
        this.browsenum = browsenum;
    }

    public Integer getFavoritenum() {
        return favoritenum;
    }

    public void setFavoritenum(Integer favoritenum) {
        this.favoritenum = favoritenum;
    }

    public Integer getSharenum() {
        return sharenum;
    }

    public void setSharenum(Integer sharenum) {
        this.sharenum = sharenum;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Boolean getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Boolean isdeleted) {
        this.isdeleted = isdeleted;
    }

    public Integer getReserved1() {
        return reserved1;
    }

    public void setReserved1(Integer reserved1) {
        this.reserved1 = reserved1;
    }

    public Integer getReserved2() {
        return reserved2;
    }

    public void setReserved2(Integer reserved2) {
        this.reserved2 = reserved2;
    }

    public BigDecimal getReserved3() {
        return reserved3;
    }

    public void setReserved3(BigDecimal reserved3) {
        this.reserved3 = reserved3;
    }

    public BigDecimal getReserved4() {
        return reserved4;
    }

    public void setReserved4(BigDecimal reserved4) {
        this.reserved4 = reserved4;
    }

    public Date getReserved5() {
        return reserved5;
    }

    public void setReserved5(Date reserved5) {
        this.reserved5 = reserved5;
    }

    public Date getReserved6() {
        return reserved6;
    }

    public void setReserved6(Date reserved6) {
        this.reserved6 = reserved6;
    }

    public Boolean getReserved7() {
        return reserved7;
    }

    public void setReserved7(Boolean reserved7) {
        this.reserved7 = reserved7;
    }

    public Boolean getReserved8() {
        return reserved8;
    }

    public void setReserved8(Boolean reserved8) {
        this.reserved8 = reserved8;
    }

    public String getReserved9() {
        return reserved9;
    }

    public void setReserved9(String reserved9) {
        this.reserved9 = reserved9 == null ? null : reserved9.trim();
    }

    public String getReserved10() {
        return reserved10;
    }

    public void setReserved10(String reserved10) {
        this.reserved10 = reserved10 == null ? null : reserved10.trim();
    }

    public String getReserved11() {
        return reserved11;
    }

    public void setReserved11(String reserved11) {
        this.reserved11 = reserved11 == null ? null : reserved11.trim();
    }

    public String getReserved12() {
        return reserved12;
    }

    public void setReserved12(String reserved12) {
        this.reserved12 = reserved12 == null ? null : reserved12.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getCreateuser() {
        return createuser;
    }

    public void setCreateuser(Integer createuser) {
        this.createuser = createuser;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    public Integer getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(Integer updateuser) {
        this.updateuser = updateuser;
    }

	public String getProtypename() {
		return protypename;
	}

	public void setProtypename(String protypename) {
		this.protypename = protypename;
	}

	public Boolean getIsFavorite() {
		return isFavorite;
	}

	public void setIsFavorite(Boolean isFavorite) {
		this.isFavorite = isFavorite;
	}

	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	public Integer getCountdown() {
		return countdown;
	}

	public void setCountdown(Integer countdown) {
		this.countdown = countdown;
	}

	public Integer getLeavenum() {
		return leavenum;
	}

	public void setLeavenum(Integer leavenum) {
		this.leavenum = leavenum;
	}

}